home *** CD-ROM | disk | FTP | other *** search
/ NetNews Offline 2 / NetNews Offline Volume 2.iso / news / comp / lang / c-part2 / 10411 < prev    next >
Encoding:
Internet Message Format  |  1996-08-05  |  1.1 KB

  1. Path: news.unt.edu!news
  2. From: Steve Fogoros <sfogoros@hsc.unt.edu>
  3. Newsgroups: comp.lang.c
  4. Subject: Re: A Simple Question From A Beginner (Please Help)
  5. Date: Sun, 17 Mar 1996 11:44:51 -0800
  6. Organization: University of North Texas Health Science Center
  7. Message-ID: <314C6BB3.5955@hsc.unt.edu>
  8. References: <4i26gm$6th@news.bellglobal.com>
  9. NNTP-Posting-Host: sfogoros.hsc.unt.edu
  10. Mime-Version: 1.0
  11. Content-Type: text/plain; charset=us-ascii
  12. Content-Transfer-Encoding: 7bit
  13. X-Mailer: Mozilla 2.0 (Win16; I)
  14.  
  15. David Lowe wrote:
  16. > This should be a simple thing to execute but for some reason I can not
  17. > get it to work.
  18. > What I would like to do is execute something like a SHELL command.
  19. > What I would like to do in C or C++ is the equivelent to typing the
  20. > following at the Win NT command line:
  21. >     sendmail dlowe@pathcom.com < mail.txt
  22. > I have tried the following code:
  23. >    _spawnl( _P_WAIT, "sendmail.exe", "dlowe@pathcom.com < mail.txt",
  24. >              NULL);     ^
  25. Should you be prefixing underscores on the function call?
  26.  
  27. -- 
  28. Steve Fogoros, Academic Information Coordinator
  29. University of North Texas Health Science Center
  30. sfogoros@hsc.unt.edu
  31.